-- GENERATED SPELL FOR [Infinite Timebreaker] --


function spell0_32186(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(60075,pUnit)
pUnit:RegisterEvent('Sorts_32186', 8291, 1)
end

function spell1_32186(pUnit, Event) --@Time Stop,Self--
pUnit:FullCastSpellOnTarget(60074,pUnit)
pUnit:RegisterEvent('Sorts_32186', 6310, 1)
end

function Sorts_32186(pUnit, Event)
local choix_sorts_32186 = math.random(0, 1)
if choix_sorts_32186 == 0 then
pUnit:RegisterEvent('spell0_32186', 1, 1)
end
if choix_sorts_32186 == 1 then
pUnit:RegisterEvent('spell1_32186', 1, 1)
end
end

function mob32186_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32186', math.random(1500, 3000), 1)
end

function mob32186_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32186_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32186_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32186, 1, 'mob32186_Action')
RegisterUnitEvent(32186, 2, 'mob32186_Leave')
RegisterUnitEvent(32186, 3, 'mob32186_Kill')
RegisterUnitEvent(32186, 4, 'mob32186_Die')
